package com.test;

import java.net.URLClassLoader;

/**
 * @author W.S.
 * @version v4.0.0
 * @description
 * @date Created in 2018/9/13 17:57
 */
public class PersonB extends PersonA{
    int bb = 0;

    static {
        System.out.println("B =static");
    }
    public PersonB() {
        System.out.println("B =a1");
    }

    @Override
    public void a1(){
        System.out.println("bb ="+bb);
        System.out.println("B =a1");
    }

    public static void main(String[] args) {
       StringBuffer sb1 = new StringBuffer("a");

        StringBuffer sb2 = new StringBuffer("b");
        sb1.append(sb2);
        sb2 = sb1;
        System.out.println(sb1);
        System.out.println(sb2);
         String a = "hello";
         a+="world";
    }
}

